package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.item.dto.CategoryDTO;
import com.leyou.item.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryService extends IService<Category> {


    List<CategoryDTO> findCategoryById(@Param("pid") Long pid);

    CategoryDTO findCategoryDTOById(@Param("id") Long id);

    List<CategoryDTO> listCategoryByIds(@Param("ids") List<Long> ids);

    List<CategoryDTO> listCategoryByBrandId(@Param("bid") Long bid);
}
